A Family of Syntax De nition Formalisms

نویسنده

  • Eelco Visser
چکیده

In this paper we design a syntax deenition formalism as a family of formalisms. Starting with a small kernel, various features for syntax de-nition are designed orthogonally to each other. This provides a framework for constructing new formalisms by adapting and extending old ones. The formalism is developed with the algebraic speciication formalism Asf+Sdf. It provides the following features: lexical and context-free syntax, variables, disambiguation by priorities, regular expressions, character classes and modular deenitions. New are the uniform treatment of lexical syntax, context-free syntax and variables, the treatment of regular expressions by normalization yielding abstract syntax without auxiliary sorts, regular expressions as result of productions and modules with hidden imports and renamings. Note: Supported by the Dutch Organization for Scientiic Research (NWO) under grant 612-317-420: Incremental parser generation and context-dependent disambiguation, a multidisciplinary perspective.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Performance Grammar: a Declarative De nition

In this paper we present a deŽ nition of PerformanceGrammar (PG), a psycholinguistically motivated syntax formalism, in declarative terms. PG aims not only at describing and explaining intuitive judgments and other data concerning the well–formedness of sentences of a language, but also at contributing to accounts of syntactic processing phenomena observable in language comprehension and langua...

متن کامل

Facilitating the Definition of Programming Languages by Using Parametric Context Free Grammars

In this paper we propose the use of a new kind of grammars which we call para metric context free grammars PCFG for the formal de nition of programming languages It combines the simplicity of ordinary context free grammars with expressive power and context sensitivity that is encountered in signi cantly more complex formal models As an example we consider a small programming language and presen...

متن کامل

Minimum Description Length and Compositionality

In [12] we have shown that the standard de nition of compositionality is formally vacuous; that is, any semantics can be easily encoded as a compositional semantics. We have also shown that when compositional semantics is required to be "systematic", it is possible to introduce a non-vacuous concept of compositionality. However, a technical de nition of systematicity was not given in that paper...

متن کامل

Tool Speci cation with GTSL

The de nition of software development methods encompasses the de nition of syntax and static semantics of formal languages. These languages determine documents to be produced during the application of a method. Developers demand language-based tools that provide document production support, check syntax and static semantics of documents and thus implement methods. Method integration must determ...

متن کامل

Formalisation of Stoughton's Substitution for Lambda Calculus in Constructive Type Theory

In [7], Allen Stoughton proposed a notion of substitution for the Lambda calculus formulated in its original syntax with only one sort of symbols (names) for variables and without identifying α-convertible terms. According to such formulation, the action of substitution on terms is de ned by simple structural recursion and an interesting theory arises concerning e.g. α conversion. In this paper...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1995